local chaofu = fk.CreateSkill{
    name = "ym2__chaofu",
    tags = {Skill.Compulsory}
}
Fk:loadTranslationTable{
    ["ym2__chaofu"] = "朝缚",
    [":ym2__chaofu"] = "锁定技，若你的技能数小于一号位，则你使用伤害牌后减1点体力上限；你受到的伤害均改为1。",
}
chaofu:addEffect(fk.CardUseFinished,{
    anim_type = "negative",
    can_trigger = function (self, event, target, player, data)
        if target == player and player:hasSkill(chaofu.name) and data.card.is_damage_card then
            for _, tp in ipairs(player.room.alive_players) do
                if tp.seat == 1 then
                    return #player:getSkillNameList() < #tp:getSkillNameList()
                end
            end
        end
    end,
    on_use = function (self, event, target, player, data)
        player.room:changeMaxHp(player,-1)
    end,
})
chaofu:addEffect(fk.DetermineDamageInflicted, {
    anim_type = "defensive",
    can_trigger = function(self, event, target, player, data)
        if target == player and player:hasSkill(chaofu.name) then
            for _, tp in ipairs(player.room.alive_players) do
                if tp.seat == 1 then
                    return #player:getSkillNameList() < #tp:getSkillNameList()
                end
            end
        end
    end,
    on_use = function(self, event, target, player, data)
        data:changeDamage(1 - data.damage)
    end,
})
return chaofu